items = ["苹果", "桔子", "香蕉", "葡萄", "红提", "西瓜"]
prices = [6.00, 3.20, 2.50, 14.80, 15.00, 1.50]
TABLE_WIDTH = 30
HEADER = "项目"
PRICE_LABEL = "价格"

def print_table(items, prices, table_width=TABLE_WIDTH):
    print("=" * table_width)
    print(f"{HEADER:<{table_width - len(PRICE_LABEL) - 2}}  {PRICE_LABEL}")
    print("-" * table_width)

    # 打印项目和价格
    for item, price in zip(items, prices):
        print(f"{item:<{table_width - 8}} {price:>7.2f}")

    print("=" * table_width)

print_table(items, prices)